<?php 
/**
/**
 * admin controller
 * 
 * @category	Jolly
 * @package		Jolly_Masa
 * @author 		lvxx <lx.xin@qq.com>
 */ 
class Jolly_Masa_Adminhtml_MasapaymentController extends Mage_Adminhtml_Controller_Action{	
	/**
	 * default action
	 * @access public
	 * @return void
	 * @author lvxx <lx.xin@qq.com>
	 */
	public function indexAction(){
		 $this->loadLayout();
		
        $this->renderLayout();
	}
	
	public function showAction(){
		
		
		$id     = $this->getRequest()->getParam('id');
		$model = Mage::getModel('masa/masapayment')->load($id);
		
		if ($model->getId() || $id == 0) {
			Mage::register('masa_data', $model);			
			
			$this->loadLayout();		
			$this->renderLayout();
		}		
		else {
			Mage::getSingleton('adminhtml/session')->addError(Mage::helper('chinarate')->__('Item does not exist'));
			$this->_redirect('*/*/');
		}
		
		
	}
	
}